﻿using System.Windows;

namespace Brjnk.GpxExplorer.UI
{
    /// <summary>
    /// Interaction logic for ObjectViewer.xaml
    /// </summary>
    public partial class ObjectViewer : Window
    {
        public ObjectViewer()
        {
            InitializeComponent();
        }

        public object Object
        {
            get { return presenter.Object; }
            set { presenter.Object = value; }
        }

        public static void ShowDialog(object instance)
        {
            var window = new ObjectViewer();
            window.Object = instance;
            window.ShowDialog();
        }
    }
}